package com.kc.business.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商品sku规则
 */
@Data
@Table(name = "kc_goods_sku_category")
public class BizGoodsSkuCategory {

    /*主键id*/
    @Id
    private Integer id;
    /*类别名称*/
    @NotBlank(message = "类别名称错误")
    private String name;
    /*状态*/
    private Integer status;
    /*删除标识*/
    private Integer isDeleted;
    /*商品分类id*/
//    @NotNull(message = "商品分类id错误")
//    @Min(value = 1,message = "商品分类id错误")
    //private Integer goodsCategoryId;
    /*商品类别名称*/
    @Transient
    private String goodsCategoryName;
    /*租户类型*/
    private Integer tenantType;
    /*租户Id*/
    private Integer tenantId;

}
